# Contributor: Daiki Maekawa <daikimaekawa29@gmail.com>
# Maintainer: Daiki Maekawa <daikimaekawa29@gmail.com>
pkgname=py3-frozendict
_pkgname=frozendict
pkgver=2.3.2
pkgrel=0
pkgdesc="immutable dictionary"
url="https://github.com/Marco-Sulla/python-frozendict"
arch="all"
license="MIT"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-frozendict" # Backwards compatibility
provides="py-frozendict=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=$(echo "$PWD"/build/lib*) pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e6674f12d311ba75ea2a7e7dc70c5ffef5b34e5461858c6a0c145437946a938cf7e93ec2e0d3c9321f3e5ca2c6d3bf4707aa57e36803cccc0bf2f26a6f95e57d  frozendict-2.3.2.tar.gz
"
